<%@ page contentType="text/html;charset=UTF-8" language="java" %>
<%@taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core" %>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
    <meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
    <title>后台管理 - 易买网</title>
    <link type="text/css" rel="stylesheet" href="../css/style.css" />
    <script type="text/javascript" src="../scripts/function-manage.js"></script>
</head>
<body>
<div class="main">
    <h2>商品管理</h2>
    <div class="manage">
        <table class="list">
            <tr>
                <th>ID</th>
                <th>商品名称</th>
                <th>操作</th>
            </tr>
            <c:forEach items="${productLists}" var="product">
                <tr>
                    <td class="first w4 c">${product.epid}</td>
                    <td class="thumb"><img style="width: 100px;height: 80px;overflow:hidden" src="../images/product/${product.eppicturename}" /><a href="../product-view.jsp" target="_blank">${product.epname}</a></td>
                    <td class="w1 c"><a href="/UpdateProductPrvServlet?pid=${product.epid}&ppicName=${product.eppicturename}&pname=${product.epname}">修改</a> <a onclick="javascript:return confirm('你确定删除内容')" href="deleteProductServlet?pid=${product.epid}&curpage=${curpage}" >删除</a></td>
                </tr>
            </c:forEach>

        </table>



    </div>
   <a href="productListServlet?curpage=1" >首页</a>|
    <c:if test="${curpage>1}">
        <a href="productListServlet?curpage=${curpage-1}" >上一页</a>|
    </c:if>
    <c:if test="${curpage<pageTotle}">
       <a href="/productListServlet?curpage=${curpage+1}">下一页</a>|
    </c:if>
    总页数：${pageTotle}页
</div>
</body>
</html>


